import { ecs } from "../../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
import { TableHeroStarExt } from "../../common/table/TableHeroStarExt";

/**
 * 角色星星数据
 */
@ecs.register('RoleModelStar')
export class RoleModelStarComp extends ecs.Comp {
    /** 当前星星配置 */
    starCurrent: TableHeroStarExt = new TableHeroStarExt();
    /** 下级星星配置 */
    nextCurrent: TableHeroStarExt = new TableHeroStarExt();
    /** 是否可以升星 */
    canUp: boolean = false;
    /** 升星前攻击 */
    bfAtk: number = 0;
    bfDef: number = 0;
    bfHp: number = 0;
    bfSpd: number = 0;

    reset() {
        this.canUp = false;
    }
}